Page({
  data: {
    startDate: '',
    endDate: '',
  },
  sendParams:function(){
    wx.redirectTo({
      url: '../history/history?startDate=' + this.data.startDate+"&endDate="+this.data.endDate
    })
  },
  bindStartDateChange: function (e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      startDate: e.detail.value
    })
  },
  bindEndDateChange: function (e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      endDate: e.detail.value
    })
  }
})